Answer:

No. The example program called the method like this:

str.length();

No parameters are supplied.

Declaring a Reference Variable

There are several ways to declare a reference variable:

ClassName variableName;
ClassName variableName  =  new ClassName( parameter, parameter, ... ) ;
ClassName   variableNameOne, variableNameTwo ;
dataType   variableNameOne  =  new ClassName( parameter, parameter, ... , 
           variableNameTwo  =  new ClassName( parameter, parameter, ...  ;

QUESTION 10:

Is the following correct?

String stringG = new String("And yet, it moves!");